package books.to.africa

/* Donor is able to view all books that he/she
 * has entered into the Book Domain with options
 * to commit and fulfill book request
 */
class DonationList {

	/* userName of donor displayed based off of log in
	 * 
	 * List of books donor has donated pulled from
	 * Inventory List
	 * 
	 * Commit and fulfill options are available for
	 * each book in list 
	 */	  

	String commit;
	Date dateCommit = new Date();
	String fulfill;
	Date dateFulfill = new Date();

	static hasMany = [ books : Book ]
	DonorRegister dr
	
    static constraints = {
		commit(blank: true, inList: ["Yes", "No"])
		fulfill(blank: true, inList: ["Yes", "No"])
    }
}
